// 员工的路由规则
import Layout from '@/layout'
export default {
  path: '/employees',
  name: 'employees',
  component: Layout,
  children: [{
    path: '',
    component: () => import('@/views/employees/index'), // 动态引入
    name: 'employees',
    meta: { // 路由元信息
      title: '员工管理',
      icon: 'people'
    }
  }, {
    path: 'detail/:id', // id后加？能让无id也正常访问
    component: () => import('@/views/employees/detail'),
    hidden: true, // 不在左侧菜单显示
    meta: {
      title: '员工详情'
    }
  }, {
    path: 'print/:id',
    component: () => import('@/views/employees/print'),
    hidden: true, // 不在左侧菜单显示
    meta: {
      title: '员工打印'
    }
  }]
}
